<layout name="layout" />
<style>
    th{
        font-size: 18px;
        font-weight: bold;
    }

    td{
        height:30px;
        padding: 20px !important;
    }
    
    [name="ir_TaskID"]{
        display: none;
    }
</style>

<div class='table-responsive'>
    <h3>{$data.pageTitle}</h3>
    <input name="ir_TaskID" value="{$data[0].ID}"/>
    <table class='table table-striped'>

        <thead>
            <tr>
                <th>{$data[0].title}</th>
            </tr>
        </thead>

        <tbody>
            <tr>
                <td>发布人：{$send[0].username}</td>
            </tr>
            <tr>
                <td>接受人：{$recv[0].username}</td>
            </tr>
            <tr>
                <td>任务赏金：$&nbsp;{$data[0].reward}&nbsp;元</td>
            </tr>
            <tr>
                <td>任务详细：<span id='tf_content'>{$data[0].content}</span></td>
            </tr>
            <tr>
                <td><button name="ti_submit" {$isable} class="btn btn-primary" >接受任务</button></td>
            </tr>
        </tbody>
    </table>
    <br/>
    
</div>

<script>
    
    $('[name=ti_submit]').click(ti_doRecv)
</script>